﻿using System;
using Microsoft.EntityFrameworkCore.Migrations;

#nullable disable

namespace TulingMember.Database.Migrations.Migrations
{
    public partial class updatecustomertabledepartment : Migration
    {
        protected override void Up(MigrationBuilder migrationBuilder)
        {
            migrationBuilder.UpdateData(
                table: "Role",
                keyColumn: "Id",
                keyValue: 142307070910554L,
                column: "CreatedTime",
                value: new DateTimeOffset(new DateTime(2023, 6, 25, 22, 57, 21, 583, DateTimeKind.Unspecified).AddTicks(2448), new TimeSpan(0, 8, 0, 0, 0)));

            migrationBuilder.UpdateData(
                table: "Security",
                keyColumn: "Id",
                keyValue: 142307070910555L,
                column: "CreatedTime",
                value: new DateTimeOffset(new DateTime(2023, 6, 25, 22, 57, 21, 583, DateTimeKind.Unspecified).AddTicks(3505), new TimeSpan(0, 8, 0, 0, 0)));

            migrationBuilder.UpdateData(
                table: "Security",
                keyColumn: "Id",
                keyValue: 142307070910556L,
                column: "CreatedTime",
                value: new DateTimeOffset(new DateTime(2023, 6, 25, 22, 57, 21, 583, DateTimeKind.Unspecified).AddTicks(3515), new TimeSpan(0, 8, 0, 0, 0)));

            migrationBuilder.UpdateData(
                table: "Security",
                keyColumn: "Id",
                keyValue: 142307070910557L,
                column: "CreatedTime",
                value: new DateTimeOffset(new DateTime(2023, 6, 25, 22, 57, 21, 583, DateTimeKind.Unspecified).AddTicks(3516), new TimeSpan(0, 8, 0, 0, 0)));

            migrationBuilder.UpdateData(
                table: "User",
                keyColumn: "Id",
                keyValue: 142307070910551L,
                column: "CreatedTime",
                value: new DateTimeOffset(new DateTime(2023, 6, 25, 22, 57, 21, 583, DateTimeKind.Unspecified).AddTicks(9678), new TimeSpan(0, 8, 0, 0, 0)));

            migrationBuilder.CreateIndex(
                name: "IX_cts_Customer_DepartmentId",
                table: "cts_Customer",
                column: "DepartmentId");

            migrationBuilder.AddForeignKey(
                name: "FK_cts_Customer_cts_Department_DepartmentId",
                table: "cts_Customer",
                column: "DepartmentId",
                principalTable: "cts_Department",
                principalColumn: "Id",
                onDelete: ReferentialAction.Cascade);
        }

        protected override void Down(MigrationBuilder migrationBuilder)
        {
            migrationBuilder.DropForeignKey(
                name: "FK_cts_Customer_cts_Department_DepartmentId",
                table: "cts_Customer");

            migrationBuilder.DropIndex(
                name: "IX_cts_Customer_DepartmentId",
                table: "cts_Customer");

            migrationBuilder.UpdateData(
                table: "Role",
                keyColumn: "Id",
                keyValue: 142307070910554L,
                column: "CreatedTime",
                value: new DateTimeOffset(new DateTime(2023, 6, 25, 19, 48, 12, 105, DateTimeKind.Unspecified).AddTicks(8687), new TimeSpan(0, 8, 0, 0, 0)));

            migrationBuilder.UpdateData(
                table: "Security",
                keyColumn: "Id",
                keyValue: 142307070910555L,
                column: "CreatedTime",
                value: new DateTimeOffset(new DateTime(2023, 6, 25, 19, 48, 12, 105, DateTimeKind.Unspecified).AddTicks(9567), new TimeSpan(0, 8, 0, 0, 0)));

            migrationBuilder.UpdateData(
                table: "Security",
                keyColumn: "Id",
                keyValue: 142307070910556L,
                column: "CreatedTime",
                value: new DateTimeOffset(new DateTime(2023, 6, 25, 19, 48, 12, 105, DateTimeKind.Unspecified).AddTicks(9575), new TimeSpan(0, 8, 0, 0, 0)));

            migrationBuilder.UpdateData(
                table: "Security",
                keyColumn: "Id",
                keyValue: 142307070910557L,
                column: "CreatedTime",
                value: new DateTimeOffset(new DateTime(2023, 6, 25, 19, 48, 12, 105, DateTimeKind.Unspecified).AddTicks(9576), new TimeSpan(0, 8, 0, 0, 0)));

            migrationBuilder.UpdateData(
                table: "User",
                keyColumn: "Id",
                keyValue: 142307070910551L,
                column: "CreatedTime",
                value: new DateTimeOffset(new DateTime(2023, 6, 25, 19, 48, 12, 106, DateTimeKind.Unspecified).AddTicks(5590), new TimeSpan(0, 8, 0, 0, 0)));
        }
    }
}
